<div class="xm-rate-wrap" (mouseleave)="rateLeave()">
    <app-rate-item *ngFor="let item of starArray; index as i"
                    [rateItemCls]="rateItemStyles[i]"
                    (itemClick)="rateClick($event, i)"
                    (itemHover)="rateHover($event, i)"></app-rate-item> 

</div>